package com.atguigu.common.exception;

import lombok.Getter;

//枚举的get方法
@Getter
public enum BizCodeEnume {
    //写成常量
    UNKNOW_EXEPTION(10000,"系统未知异常"),

    VALID_EXCEPTION( 10001,"参数格式校验失败");
    //枚举的属性
    private int code;
    private String msg;
    //枚举的构造方法
    BizCodeEnume(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
